package cn.jorian.framework.controller;

import cn.jorian.framework.bean.XmlBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/xml")
public class XmlController {

    @GetMapping("/getXml")
    public XmlBean getXml() {
        XmlBean xmlBean = new XmlBean();
        xmlBean.setName("测试");
        xmlBean.setAge(19);
        xmlBean.setAddress("地址");
        return xmlBean;
    }
}
